package com.k.kc.common.resp;

public class Test {
    public static void main(String[] args) {
        Result<String> r = new Result<>();
        printResult(r);

        Result<String> r2 = Result.success("ddd");
        printResult(r2);

        Result<String> r3 = Result.failed();
        printResult(r3);

        Result<String> r4 = new Result<>("ffff");
        printResult(r4);


    }

    private static void printResult(Result<String> r2) {
        System.out.println(r2.getCode()+"-"+r2.getMessage()+"-"+r2.getData());
    }
}
